home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / grapdrvs / djgdrvs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-21  |  2.2 KB  |  56 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                       Ver 0.1, Mar. 1990    *
  5. ******************************************************************************
  6. * MSDOS graphical interface for IRIT. Based on intr_lib windowing library.   *
  7. *****************************************************************************/
  8.  
  9. #include <time.h>
  10. #include <stdio.h>
  11. #include <string.h>
  12. #include <stdlib.h>
  13. #include <conio.h>
  14. #include "djggraph.h"
  15.  
  16. /*****************************************************************************
  17. * DESCRIPTION:                                                               M
  18. * Main module of djgdrvs - Amiga graphics driver of IRIT.                      M
  19. *                                                                            *
  20. * PARAMETERS:                                                                M
  21. *   argc, argv:  Command line.                                               M
  22. *                                                                            *
  23. * RETURN VALUE:                                                              M
  24. *   int:         Exit code.                                                  M
  25. *                                                                            *
  26. * KEYWORDS:                                                                  M
  27. *   main                                                                     M
  28. *****************************************************************************/
  29. void main(int argc, char **argv)
  30. {
  31.     int i;
  32.     RealType ChangeFactor;
  33.     IGGraphicEventType Event;
  34.     IPObjectStruct *PObjects;
  35.  
  36.     IGConfigureGlobals("djgdrvs", argc, argv);
  37.  
  38.     IGCreateStateMenu();
  39.  
  40.     InitIntrLibWindows();
  41.  
  42.     while ((Event = GetGraphicEvent(&ChangeFactor)) != IG_EVENT_QUIT) {
  43.     if (IGProcessEvent(Event, ChangeFactor * IGGlblChangeFactor))
  44.         if (IntrWndwIsAllVisible(IGGlblViewWindowID)) {
  45.         IntrIntFunc
  46.             RefreshFunc = IntrWndwGetRefreshFunc(IGGlblViewWindowID);
  47.  
  48.         RefreshFunc(IGGlblViewWindowID);
  49.             }
  50.         else
  51.         IntrWndwRedrawAll();
  52.     }
  53.  
  54.     CloseIntrLibWindows();
  55. }
  56.